import GoEsServices from "./GoEsServices.js";
const app = getApp();
const util = require('../util');

module.exports = {

    /**
     * 根据权限查询项目人员
     * @param {Object} data
     * @author Man Yang
     * @date 07/16/2025 
     */
    findProjectPerspnnelByAuthority: function (data) {
        console.log("in exports... ", data);
        return GoEsServices.LeaveManagementForProjectPersonnel("personnelListByAuthority", data);
    },

    /**
     * 保存人员请假记录
     * @param {Object} data
     * @author Man Yang
     * @date 07/17/2025 
     */
    saveWrittenRequestForLeave(data) {
        return GoEsServices.LeaveManagementForProjectPersonnel("writtenRequestForLeave", data);
    },

       /**
     * 终止请假
     * @param {Object} data
     * @author Bi Yanshuai
     * @date 08/07/2025 
     */
    stopForLeave(data){
      return GoEsServices.LeaveManagementForProjectPersonnel("stopForLeave", data);
    }
}